<html xmlns="http://www.w3.org/1999/xhtml"  
    xmlns:h="http://java.sun.com/jsf/html"  
    xmlns:f="http://java.sun.com/jsf/core"  
    xmlns:p="http://primefaces.org/ui"
    xmlns:pe="http://primefaces.org/ui/extensions">  
  
    <h:head>  
  
    </h:head>  
      
    <h:body> 
    
    <p:layout fullPage="true">
    	<p:layoutUnit position="north" size="120">
    	<p:breadCrumb>
    			<p:menuitem value="Hauptmenü" url="../../index.jsf"/>
    			<p:menuitem value="Bauteilverwaltung" url="../indexBauteilverwaltung.jsf"/>
    			<p:menuitem value="Neue Terminplanposition" url="#"/>
    		</p:breadCrumb>    		
    	</p:layoutUnit>
    	
    	
    	<p:layoutUnit position="center" header="Center" size="140">
    	<br />
    	<br />
    	<h:form>
    		<p:panelGrid columns="2">
    			<h:outputLabel value="Auftragsnummer: "/>
    			<p:selectOneMenu value="#{neueTerminplanpositionBean.bauID}" filter="true" filterMatchMode="contains">
    				<f:selectItem itemLabel="Bitte wählen" itemValue="-1"/>
    				
    				<f:selectItems var="baustelle" value="#{generalManagedBean.listBaustelle}" 
    				itemLabel="#{baustelle.kommisionsnummer} = #{baustelle.bauvorhaben}" 
    				itemValue="#{baustelle.bauID}"/>
    				<p:ajax update=":#{p:component('inputmask')}" listener="#{neueTerminplanpositionBean.showInputmask}"/>
    			</p:selectOneMenu>
    		</p:panelGrid>
    		<br />	
    		<br />	
    		<br />	
    		<br />
    		<p:outputPanel id="inputmask" rendered="true">
	   			<p:panelGrid columns="0">
	   				<p:row >
	   					<p:column colspan="0" >
		   					<h:outputLabel value="Name:* "/>
		   						
	   					</p:column>
	   					<p:column colspan="0">
	   						<p:inputText value="#{neueTerminplanpositionBean.tpposName}" required="true" requiredMessage="Bitte Name eingeben!"/> 
	   					</p:column>
	   				</p:row>
	   				<p:row>
	   					<p:column colspan="2">
	   						<br />
	   					</p:column>
	   				</p:row>
	   				<p:row>
	   					<p:column colspan="2">
		   					<p:panel header="Plannummerverwaltung:">
		   					
			   					<p:panelGrid columns="2">
				   					<h:outputLabel value="Interne ID: "/>
				   					<p:inputText value="#{neueTerminplanpositionBean.interneID}"/>
				   					
				   					<h:outputLabel value="Verantwortlicher Techniker"/>
				   					<p:selectOneMenu value="#{neueTerminplanpositionBean.bauID}">
				   						<f:selectItem itemLabel="Statisch löschen"/>
				   					
				   					</p:selectOneMenu>
				   					
		   						</p:panelGrid>
		   					</p:panel>
	   					</p:column>
	   					<p:column colspan="2">
	   						<p:panel header="Abteilungen:">
		   					
			   					<p:panelGrid columns="2">
				   					<h:outputLabel value="Schlosserei: "/>
				   					<p:selectBooleanCheckbox value="#{neueTerminplanpositionBean.schlosserei}"/>
				   					
				   					<h:outputLabel value="Alu: "/>
				   					<p:selectBooleanCheckbox value="#{neueTerminplanpositionBean.alu}"/>
				   					
				   					<h:outputLabel value="Niro: "/>
				   					<p:selectBooleanCheckbox value="#{neueTerminplanpositionBean.niro}"/>
				   					
		   						</p:panelGrid>
		   					</p:panel>
	   					
	   					</p:column>
	   					
	   				</p:row>
	   				<p:row>
	   					<p:column colspan="2">
	   						<br />
	   					</p:column>
	   				</p:row>
	   				<p:row>
	   					<p:column colspan="2">
	   						<p:commandButton value="Eintragen" actionListener="#{neueTerminplanpositionBean.eintragenNeueTerminplanposition}"/>
	   					</p:column>
	   				</p:row>
	   				
	   			</p:panelGrid>
    		</p:outputPanel>
    		
    	
    	</h:form>
    	
    	</p:layoutUnit>
    	
    	
    	<p:layoutUnit position="west" header="Navigation" size="140">
    	
    	</p:layoutUnit>
    </p:layout> 
    	
    </h:body>  
    
</html>  